xl: Some small fixes
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 26 May 2010 07:13:47 +0000 (08:13 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 26 May 2010 07:13:47 +0000 (08:13 +0100)
commita8ad76437ed5fa7e17df49da17d4214484b85a96
treec5f7eac1dba707c6cfbffe20e7ca524cbd75d81d
parent961652b3bd19c9417a87c54a883f5fa7e9805d0a
xl: Some small fixes

- When use mem-set, I got suspicious error output:
  # xl mem-set 1 256g
  setting domid 1 memory to : 268435456
  [0] libxl.c:2535:libxl_set_memory_target: memory_dynamic_max must be
  less than or equal to memory_static_max
  : Success
- String generated by strdup() should be freed
- When using 'xl help', mem-max and mem-set's output is not as intend,
  and it also breaks bash completion, fix it.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
tools/libxl/libxl.c
tools/libxl/xl_cmdimpl.c
tools/libxl/xl_cmdtable.c